package com.anolesoft.yr.mbus.cont.dao;

import com.anolesoft.yr.mbus.cont.entity.ContKeyCustomerMain;
import com.anolesoft.yr.mbus.cont.entity.ContKeyCustomerMainExample;
import com.anolesoft.yr.mbus.contm.entity.ContmBaseMain;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;

import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ContKeyCustomerMainDao extends BaseMapper<ContKeyCustomerMain> {
    long countByExample(ContKeyCustomerMainExample example);

    int deleteByExample(ContKeyCustomerMainExample example);

    List<ContKeyCustomerMain> selectByExample(ContKeyCustomerMainExample example);

    int updateByExampleSelective(@Param("record") ContKeyCustomerMain record, @Param("example") ContKeyCustomerMainExample example);

    int updateByExample(@Param("record") ContKeyCustomerMain record, @Param("example") ContKeyCustomerMainExample example);

    int updateBatch(List<ContKeyCustomerMain> list);

    int batchInsert(@Param("list") List<ContKeyCustomerMain> list);

    int insertOrUpdate(ContKeyCustomerMain record);

    int insertOrUpdateSelective(ContKeyCustomerMain record);

    List<ContKeyCustomerMain> selectAll(Page<ContKeyCustomerMain> page, @Param(Constants.WRAPPER) Wrapper wrapper);
}